package com.eastcom.bm.atom;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;


@Entity
@Table(name="QA_CALENDARPOLICY")
public class CalendarPolicy implements Serializable{



	private String uuid;
	
	private Atom_CalendarModel calendarModel;
	
	private String name;
	
	private String priority;
	
	private String remark;
	
	
	@Id
	@Column(name="UUID")
	public String getUuid() {
		return uuid;
	}
	
	@OneToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="CALENDAR_MODEL_UUID",referencedColumnName="UUID")
	public Atom_CalendarModel getCalendarModel() {
		return calendarModel;
	}

	@Column(name="NAME")
	public String getName() {
		return name;
	}

	@Column(name="REMARK")
	public String getRemark() {
		return remark;
	}


	public void setCalendarModel(Atom_CalendarModel calendarModel) {
		this.calendarModel = calendarModel;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	@Column(name="PRIORITY")
	public String getPriority() {
		return priority;
	}

	public void setPriority(String priority) {
		this.priority = priority;
	}
	
}
